package com.dd.cloud.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author admin
 */
@SpringBootApplication
@MapperScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.dao.*", "com.dd.cloud.user.mapper"})
@ComponentScan(basePackages = {"com.gitee.sunchenbin.mybatis.actable.manager.*", "com.dd.cloud.user", "com.dd.cloud.common", "com.zk.pay.*"})
@EnableScheduling
@EnableDiscoveryClient
@EnableFeignClients
//nacos配置实时刷新
@RefreshScope
//异步方法 proxyTargetClass = true使用cglib动态代理 否则使用jdk
@EnableAsync(proxyTargetClass = true)
public class DdUserServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(DdUserServiceApplication.class, args);
    }
}

